package net.aiform.account.pojo;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import net.aiform.pojo.Identity;

@Entity
@Table(name = "af_contact")
public class Contact extends Identity implements Serializable {
	private static final long serialVersionUID = -1677782704087250030L;
	@ManyToOne(cascade = CascadeType.REFRESH, optional = false)
	@JoinColumn(name = "person", referencedColumnName = "id")
	private Person person;
	private String type;
	private String company;
	private String branch;
	private String department;
	private String position;
	private String email;
	private String telephone;
	private String fax;
	private String im;
	private String status;
	private String remark;

	public String getBranch() {
		return branch;
	}

	public String getCompany() {
		return company;
	}

	public String getDepartment() {
		return department;
	}

	public String getEmail() {
		return email;
	}

	public String getFax() {
		return fax;
	}

	public String getIm() {
		return im;
	}

	public Person getPerson() {
		return person;
	}

	public String getPosition() {
		return position;
	}

	public String getRemark() {
		return remark;
	}

	public String getStatus() {
		return status;
	}

	public String getTelephone() {
		return telephone;
	}

	public String getType() {
		return type;
	}

	public void setBranch(String branch) {
		this.branch = branch;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public void setIm(String im) {
		this.im = im;
	}

	public void setPerson(Person person) {
		this.person = person;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public void setType(String type) {
		this.type = type;
	}

}
